//
//  MFAConstants.h
//  NewMissFresh
//
//  Created by 董宝君 on 2019/6/19.
//  Copyright © 2019 com.missfresh. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 网络类型
 
 - MFAnalyticsNetworkTypeNONE: NONE
 - MFAnalyticsNetworkType2G: 2G
 - MFAnalyticsNetworkType3G: 3G
 - MFAnalyticsNetworkType4G: 4G
 - MFAnalyticsNetworkTypeWIFI: WIFI
 - MFAnalyticsNetworkTypeALL: ALL
 */
typedef NS_OPTIONS(NSInteger, MFAnalyticsNetworkType) {
    MFAnalyticsNetworkTypeNONE      = 0,
    MFAnalyticsNetworkType2G       = 1 << 0,
    MFAnalyticsNetworkType3G       = 1 << 1,
    MFAnalyticsNetworkType4G       = 1 << 2,
    MFAnalyticsNetworkTypeWIFI     = 1 << 3,
    MFAnalyticsNetworkTypeALL      = 0xFF,
};

/**
 SQLite 错误
 */
extern NSString * const MF_ANALYTICS_ERROR_MODULE_SQLITE;

/**
 丢失数据
 */
extern NSString * const MF_ANALYTICS_ERROR_MODULE_LOSE_DATA;

/**
 网络异常
 */
extern NSString * const MF_ANALYTICS_ERROR_MODULE_NETWORK;

/**
 GZIP异常
 */
extern NSString * const MF_ANALYTICS_ERROR_MODULE_GZIP;
